package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.model.entity.orange.OrangeProductSku;
import com.atmilan.quartz.mapper.OrangeProductSkuMapper;
import com.atmilan.quartz.service.IOrangeProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Service
public class OrangeProductSkuServiceImpl extends ServiceImpl<OrangeProductSkuMapper, OrangeProductSku> implements IOrangeProductSkuService {

    @Autowired
    OrangeProductSkuMapper orangeProductSkuMapper;

    @Override
    public void deleteAll() {
        orangeProductSkuMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        orangeProductSkuMapper.deleteProductBack();
        orangeProductSkuMapper.copyProductBack();
    }

}
